package com.bruce.codeFactory.designMode.singleton;

/**
 * @author luotuan
 * @Description  高效版本1
 * @create 2019-02-21 21:58
 **/
public class SingletonDemo1 {
    private SingletonDemo1(){

    }
    private static class InstanceHolder{
        private final static SingletonDemo1 instance = new SingletonDemo1();
    }
    public static SingletonDemo1 getInstance(){
        return InstanceHolder.instance;
    }
}
